package com.example.loop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.loop.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Liaorun
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where account = #{account}")
    User findByAccount(@Param("account") String account);
}